<app-tip [type]="tipType"></app-tip>
<div>
  <header class="flex">
    <div class="left" [routerLink]="['/main/index']"   id="btn-back">
      <div><i class="fas fa-chevron-left"></i></div>
    </div>
    <div class="center"><span>今日收益详情</span></div>
    <div class="right"></div>
  </header>
</div>

<div class="data">
  <div class="count">总收益</div>
  <div class="num">{{profit.profit}} 元</div>
  <div class="desc">谈钱很俗，但我就想帮你多赚点</div>
</div>

<div class="list">
  <div class="desc flex">
    <div class="left" style="border-right: 1px solid #ddd">商家名称</div>
    <div class="center" style="border-right: 1px solid #ddd">营业额</div>
    <div class="right">预计收益</div>
  </div>

  <div class="item flex" *ngFor="let v of profit.list">
    <div class="left">{{v.name}}</div>
    <div class="center">{{v.money}} 元</div>
    <div class="right">{{v.expectedEarnings}} 元</div>
  </div>

  <div class="item flex" *ngIf="profitFlag">
    <div class="left"><i class="fa fa-info-circle"></i> 您今天还没有收益！</div>
  </div>

</div>
